package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @ClassName :  FollowUser
 * @Author : Tenebrous
 * @Date: 2020/12/15 21:45
 * @Description : 关注用户
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "follow_user")
public class FollowUser implements Serializable {

    private static final long serialVersionUID = 1195507090025382101L;

    /**
     * 主键id
     */
    private ObjectId id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 关注的用户i
     */
    private Long followUserId;

    /**
     * 关注时间
     */
    private Long created;

}
